<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    function Dog(name, sound) {
      this.name = name;
      this.sound = sound;
    }
    Dog.prototype.call = function (callSound) {
      console.log(
        this.name +
          "是一条可爱的小狗，它的叫声很好听" +
          this.sound +
          "每次见到主人就会乖乖的叫一声" +
          callSound
      );
    };
    var daiDaiDog = new Dog("呆呆", "wow");
    daiDaiDog.call("yelp");
  </script>
</html>
